import DefaultTheme from "vitepress/theme";
import NotFound from "./NotFound.vue";
import { EnhanceAppContext } from "vitepress";
import DemoBlock from "../../../views/demo-block";
import TableBlock from "../../../views/table-block";

import 'earthsdk-ui/lib/style.css';
import EarthSDKUI from 'earthsdk-ui';

export default {
  ...DefaultTheme,
  NotFound,
  enhanceApp(ctx: EnhanceAppContext) {
    DefaultTheme.enhanceApp(ctx);
    ctx.app.use(EarthSDKUI);
    ctx.app.component("demo-block", DemoBlock);
    ctx.app.component("table-block", TableBlock);

    ctx.app.mixin({
      async mounted() {
        import("../../../../es-iconfont/iconfont.js").then(res => { });
      },
    });
  },
};
